home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 44
/
Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso
/
-in_the_mag-
/
basics
/
amos
/
maxsamosdoors.lha
/
cwdl.amos
/
cwdl.amosSourceCode
Wrap
AMOS Source Code
|
1999-01-01
|
2KB
|
69 lines
F= Extension_16_0006(Val(Command Line$))
E$=Chr$(27)+"["
MAIN:
ST$=E$+"2J"+E$+"5;0H"+E$+"37m"
PRNT[ST$]
ST$=" PhoenixRAW Download from Amiga Phoenix BBS (+44) 151 283 6406"
PRNT[ST$]
PRNT[""]
PRNT[E$+"33m"]
ST$=" Please Wait.... The Sysop is selecting a file for you to download"
PRNT[""]
PRNT[ST$]
PRNT[""]
PRNT[E$+"32m"]
IN$=Space$(120)
Amos To Front
X Mouse=320
Y Mouse=128
IN$=Fsel$("RAM:")
Amos To Back
If IN$="" or IN$=" " Then A= Extension_16_002A(E$+"31m Can't find the file I wanted..... "+IN$) : PRNT[""] : Goto CONT
SP$=" "
X=Instr(IN$,":")
ST$="Ready to send : "+E$+"31m"+Mid$(IN$,X+1)
P=40-(Len(ST$)/2)
ST$=Left$(SP$,P)+ST$
PRNT[ST$]
PRNT[""]
PRNT[""]
PRNT[E$+"36m Press <SPACE> to start, any other key to abort transfer"]
KEYLOOP:
KEY= Extension_16_0184
If KEY=0 Then Goto KEYLOOP
If KEY=$80000020 or KEY=$20 Then Goto DWNLOAD
Goto CONT
DWNLOAD:
A= Extension_16_0152(24,100,IN$)
If A=20 Then BYE
CONT:
PRNT[""]
PRNT[""]
PRNT[E$+"37m Send another file ? "]
KEYLOOP2:
KEY= Extension_16_0184
If KEY=0 Then Goto KEYLOOP2
If KEY=$79 Then Goto MAIN
If KEY=$59 Then Goto MAIN
BYE
Procedure PRNT[S$]
If Len(S$)>70
A$=Left$(S$,70)
B$=Right$(S$,Len(S$)-70)
Z= Extension_16_002A(A$)
Z= Extension_16_002A(B$+Chr$(13))
Else
Z= Extension_16_002A(S$+Chr$(13))
End If
If Z=20 Then BYE
End Proc
Procedure BYE
Extension_16_0018
End
End Proc